

#ifndef __DEVICE_H
#define __DEVICE_H



typedef enum 
{
    AddKey                  = 0x01,
    AddLongKey              = 0x31,
    
    SubKey                  = 0x05,
    SubLongKey              = 0x35,

    AssistUpKey             = 0x02,
    AssistUpLongKey         = 0x32,

    AssistDownKey           = 0x06,
    AssistDownLongKey       = 0x36,
    
    SaveKey                 = 0x03,
    SaveLongKey             = 0x33,

    TextBoxFocusKey         = 0x07,
    FormFocusLongKey        = 0x37,
    
    StartKey                = 0x04,
    StartLongKey            = 0x34,
    
    StopKey                 = 0x08,
    StopLongKey             = 0x38
}Key;

typedef enum 
{
    TimerhandleInterrupt    = 0,
    TimerhandleMessage      = 1	
}TimerhandleMode;	

typedef struct 
{
    byte Second;
    byte Minute;
    byte Hour;
    uint Day;
} Rtc;

typedef enum
{
    SystemTick10000,
    SystemTick1000,
    SystemTick100
}SystemTick;

extern void KeySystemTickService(void);

extern void RtcSystemTickService(void);

extern void TimerSystemTickService(void);

extern void TraceSystemTickService(void);


extern void InitializeKey(void);

extern void InitializeLcd(void);

extern void InitializeRtc(void);

extern void InitializeTimer(void);

extern void InitializeTrace(void);

extern void InitializeSystemTick(void);

extern void InitializeDevice(void);

#endif

